import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const engineExternalCharacteristicApi = {
    // 添加发动机外特性曲线 @author wuhq
    addEngineExternalCharacteristic: (data) => {
        return postAxios('/engineExternalCharacteristic/add', data);
    },
    // 分页查询发动机外特性曲线 @author wuhq
    queryEngineExternalCharacteristic: (data) => {
        return postAxios('/engineExternalCharacteristic/page/query', data);
    },
    // 根据发动机id获取 @author wuhq
  getByEngineId: (id) => {
        return getAxios(`/engineExternalCharacteristic/getByEngineId/${id}`);
    },
    // 批量删除发动机外特性曲线 @author wuhq
    batchDeleteEngineExternalCharacteristic: (idList) => {
        return postAxios('/engineExternalCharacteristic/deleteByIds', idList);
    },
    // 修改发动机外特性曲线  @author wuhq
    updateEngineExternalCharacteristic: (data) => {
        return postAxios('/engineExternalCharacteristic/update',data);
    },
    // 导出全部  @author wuhq
    exportAll:(data)=>{
        return postDownloadAxios('/engineExternalCharacteristic/export/all',data);
    },
    // 批量导出  @author wuhq
    batchExport: (idList) => {
        return postDownloadAxios('/engineExternalCharacteristic/export/batch', idList);
    },
};
